package com.cskaoyan.service;

import com.cskaoyan.dao.UserDao;
import com.cskaoyan.dao.UserDaoImpl;

/**
 * @author stone
 * @date 2021/11/18 10:53
 */
public class UserServiceImpl implements UserService{

    //UserDao userDao = new UserDaoImpl();
    UserDao userDao;//当前让他来源于容器

    //OrderDao orderDao;

    @Override
    public void sayHello() {
        userDao.daoSayHello();
        System.out.println("hello world");
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
